<template>
  <div class="box-class">
    <div class="container">
      <!-- <div class="logo">
      <div class="logo-text">Li</div>
    </div> -->
      <!-- <LoginBanner /> -->
      <div class="content">'
        <div class="content-inner">
          <LoginForm />
        </div>
        <div class="footer">
          <Footer />
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import Footer from '@/components/footer/index.vue';
import LoginBanner from './components/banner.vue';
import LoginForm from './components/login-form.vue';
</script>

<style lang="less" scoped>
.box-class {
  background-color: #F6F8FE;
  height: 100vh;
}

.content-inner {

  background: rgba(255, 255, 255, 0.2); /* 更高透明度的白色背景 */
  backdrop-filter: blur(20px); /* 更强的模糊效果 */
  border-radius: 15px; /* 圆角 */
  border: 1px solid rgba(255, 255, 255, 0.8); /* 更明显的白色边框 */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* 更强的阴影效果，增加深度 */
  
  position: absolute;
  margin-left: 20%;
  // left: 0;
  width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  z-index: 33;
  // display: inline-block;
  animation: slideIn 1s ease-out, bounce 0.5s ease-in-out 1s forwards; /* 组合动画 */
}
@keyframes slideIn {
  0% {
    transform: translateX(-100%); /* 从屏幕左侧进入 */
  }
  100% {
    transform: translateX(0); /* 到达原始位置 */
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0); /* 初始位置 */
  }
  50% {
    transform: translateY(0); /* 向上跳动 5px */
  }
  100% {
    transform: translateY(0); /* 回到原位 */
  }
}

.container {
  display: flex;
  height: 100vh;
  width: 100vw;
  // margin-left: 5vw;
  background-size: 100%;
  background-image: url('@/assets/bg.png');

  .banner {
    width: 550px;
    background: linear-gradient(163.85deg, #1d2129 0%, #00308f 100%);
  }

  .content {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
  }

  .footer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
  }
}

.logo {
  position: fixed;
  top: 24px;
  left: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;

  &-text {
    margin-right: 4px;
    margin-left: 4px;
    color: var(--color-fill-1);
    font-size: 20px;
  }
}
</style>

<style lang="less" scoped>
// responsive
@media (max-width: @screen-lg) {
  .container {
    .banner {
      width: 25%;
    }
  }
}</style>
